package com.cnc.dao;

import com.cnc.entity.Student;
import com.cnc.utils.PageUtil;
import com.cnc.utils.SearchUtil;

import java.util.List;

public interface StudentDao {
    List<Student> getAllStudent();

    int deleteStudent(int id);

    int insertStudent(Student s);

    int updateStudent(int Sid, String field, String value);

    int getCountRows(SearchUtil su);

    List<Student> getStudentByPage(PageUtil pu);

    int getMaxId();

    Student getStudentBySid(int sid);

    int editStudent(Student s);

    public List<Student> searchStudent(SearchUtil su, PageUtil pu);

}
